home *** CD-ROM | disk | FTP | other *** search
/ Workbench Design / WB Collection.iso / workbench werkzeuge / memory & system tools / tinymeter / install < prev    next >
Text File  |  1996-04-07  |  6KB  |  201 lines

  1. ; Installer Script for TinyMeter V4.0
  2.  
  3. (set @default-dest (""))
  4.  
  5. (set @cpu (database "cpu"))
  6.  
  7. (set @source-file "TinyMeter")
  8.  
  9. (if (= @cpu "68020")
  10.     (set @source-file "TinyMeter.020")
  11. )
  12.  
  13. (if (= @cpu "68030")
  14.     (set @source-file "TinyMeter.020")
  15. )
  16.  
  17. (if (= @cpu "68040")
  18.     (set @source-file "TinyMeter.020")
  19. )
  20.  
  21. (if (= @cpu "68060")
  22.     (set @source-file "TinyMeter.020")
  23. )
  24.  
  25. (set @destdir
  26.         (askdir
  27.                 (prompt "Where should I copy the TinyMeter main program ?")
  28.                 (help "SYS:WBStartup is the best place. Simply click proceed.")
  29.                 (default "SYS:WBStartup/")
  30.         )
  31. )
  32.  
  33. (set @prefsdir
  34.         (askdir
  35.                 (prompt "Where should I copy the TinyMeterPrefs program?")
  36.                 (help "SYS:Prefs is the best place, since TinyMeter can only call it, when its there.")
  37.                 (default "SYS:Prefs/")
  38.         )
  39. )
  40.  
  41. (set @NewIcons
  42.         (askbool
  43.                 (prompt "Do you use NewIcons® ?")
  44.                 (help "NewIcons® is a new icon-system with colorful icons. This script installs special icons for use with it.")
  45.         )
  46. )
  47.  
  48. (set @CopyExample
  49.         (askbool
  50.                 (prompt "Do you want to install the example MagicWB-settings file?\nPreferences from an older version cannot be reused!\n\nNOTE: You will have to install the additional fonts and the background pictures. Make sure you install the background pattern in SYS:Prefs/Patterns/ !!!")
  51.                 (help "Its an example setting. It uses Leater as background and all supplied font.")
  52.         )
  53. )
  54.  
  55. (set @CopyFonts
  56.         (askbool
  57.                 (prompt "Do you want to install the additional Fonts?\n(NOTE: The fonts have changed in version 3.6!)")
  58.                 (help "The additional Font:\n 1. TinyMeter_DIGITAL (for the clock and the date)\n 2. TinyMeter_DIGITAL_Med (for med-res resolutions)\n 3. XHelvetica (standard XEN-Font)")
  59.         )
  60. )
  61.  
  62. (if @CopyFonts
  63.     (set @fontdir
  64.             (askdir
  65.                     (prompt "Where should the fonts be installed?")
  66.                     (help "FONTS: is the best place. Simply click proceed.")
  67.                     (default "FONTS:")
  68.             )
  69.     )
  70. )
  71.  
  72. (if @CopyFonts
  73.     (set @dofixfont
  74.             (askbool
  75.                     (prompt "Should I do FixFonts for you?")
  76.                     (help "This is not important. Simply click no.")
  77.             )
  78.     )
  79. )
  80.  
  81. (set @CopyPatt
  82.         (askbool
  83.                 (prompt "Do you want to install the additional Background patterns?")
  84.                 (help "Backgrounds:\n1. BLUE_Leater (nice background using RomIcons-palette\n2. Leather (standard MagicWB-pattern)\n3. Sand (standard MagicWB-patterm)")
  85.         )
  86. )
  87.  
  88. (if @CopyPatt
  89.     (set @pattdir
  90.             (askdir
  91.                     (prompt "Where should the background patterns be installed?\n (example settings-file uses SYS:Prefs/Patterns!)")
  92.                     (help "SYS:Prefs/Patterns is the best place.")
  93.                     (default "SYS:Prefs/")
  94.             )
  95.     )
  96. )
  97.  
  98. (copyfiles
  99.         (prompt "Installing the files." )
  100.         (help "Where's the problem?" )
  101.         (source @source-file )
  102.         (infos)
  103.         (newname "TinyMeter")
  104.         (dest @destdir)
  105. )
  106.  
  107. (copyfiles
  108.         (prompt "Installing TinyMeter.")
  109.         (help "Where's the problem?")
  110.         (source "Prefs/TinyMeterPrefs")
  111.         (infos)
  112.         (newname "TinyMeterPrefs")
  113.         (dest @prefsdir)
  114. )
  115.  
  116. (copyfiles
  117.         (prompt "Installing catalog")
  118.         (help "Where's the problem?")
  119.         (source "Catalogs/deutsch/TinyMeterPrefs.catalog")
  120.         (dest "LOCALE:Catalogs/deutsch/")
  121. )
  122.  
  123. (if @NewIcons
  124.         (copyfiles
  125.                 (prompt "Installing NewIcons")
  126.                 (help "Where's the problem?")
  127.                 (source "ArtWork/newicons/TinyMeter.info")
  128.                 (dest @destdir)
  129.         )
  130. )
  131.  
  132. (if @NewIcons
  133.         (copyfiles
  134.                 (prompt "Installing NewIcons")
  135.                 (help "Where's the problem?")
  136.                 (source "ArtWork/newicons/TinyMeterPrefs.info")
  137.                 (dest @prefsdir)
  138.         )
  139. )
  140.  
  141. (if @CopyExample
  142.     (copyfiles
  143.             (prompt "Installing example settings-file in ENV:")
  144.             (help "Where's the problem?")
  145.             (source "Examples/MagicWB.tm")
  146.             (newname "TinyMeter")
  147.             (dest "ENV:")
  148.     )
  149. )
  150.  
  151. (if @CopyExample
  152.     (copyfiles
  153.             (prompt "Installing example settings-file in ENVARC:")
  154.             (help "Where's the problem?")
  155.             (source "Examples/MagicWB.tm")
  156.             (newname "TinyMeter")
  157.             (dest "ENVARC:")
  158.     )
  159. )
  160.  
  161. (if @CopyFonts
  162.     (copyfiles
  163.             (prompt "Installing additional fonts.")
  164.             (help "Where's the problem?")
  165.             (source "ArtWork/Fonts/")
  166.             (all)
  167.             (dest @fontdir)
  168.     )
  169. )
  170.  
  171. (if @CopyFonts
  172.     (if @dofixfont
  173.             (run "SYS:System/FixFonts"
  174.                     (prompt "Doing FixFonts... May take a while...")
  175.                     (help "Where's the problem?")
  176.             )
  177.     )
  178. )
  179.  
  180. (if @CopyPatt
  181.     (copyfiles
  182.             (prompt "Installing additional background patterns.")
  183.             (help "Where's the problem?")
  184.             (source "ArtWork/Patterns/")
  185.             (all)
  186.             (dest @pattdir)
  187.     )
  188. )
  189.  
  190. (copylib
  191.         (prompt "Installing screennotify.library")
  192.         (help "Where's the problem?")
  193.         (source "Libs/screennotify.library")
  194.         (dest "LIBS:")
  195.         (confirm)
  196. )
  197.  
  198. (exit
  199.         "Have phun with this nice piece of soft!!!\n\nNow you should start TinyMeter, setup the position and size and press S to save these settings.\n\nAfter that, start TinyMeterPrefs to setup TinyMeter to your personal taste.\n\nIf there are any problems, don't hesitate to contact the author!"
  200. )
  201.